<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="https://cdn.bootcss.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
    <title>表单提交</title>
    <script>
        window.hdjs = {};
        window.hdjs.base = '/plugin/hdjs';
        window.hdjs.uploader = 'php/uploader.php?';
        window.hdjs.filesLists = 'php/filesLists.php?';
    </script>
    <script src="../require.js"></script>
    <script src="../config.js"></script>
</head>
<body style="padding: 50px;">
<form action="php/submit.php" onsubmit="post(event)">
    <input type="text" required value="后盾人" name="web">
    <button type="submit">提交</button>
</form>
<script>
    require(['bootstrap']);
    function post(event) {
        event.preventDefault();
        require(['hdjs','bootstrap'], function (hdjs) {
            hdjs.submit({url:'php/submit.php',successUrl:'refresh'});
        })
    }
</script>
</body>
</html>